//
//  API.swift
//  ASW
//
//  Created by zhuxuhong on 2020/11/23.
//

import Foundation

public typealias APIHost = API.Host

extension API {
    public struct Host: ExpressibleByStringLiteral {
        let string: String
        let url: URL
        
        public init(stringLiteral value: StringLiteralType) {
            string = value
            url = .init(string: value) ?? .init(string: "")!
        }
    }
}

public struct API {
    public let request: Request
    
    public init(request: Request){
        self.request = request
    }
}
